package com.numberone.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.numberone.system.mapper.BottomUrlFatherMapper;
import com.numberone.system.domain.BottomUrlFather;
import com.numberone.system.service.IBottomUrlFatherService;
import com.numberone.common.support.Convert;

/**
 * 底部导航栏 父级 服务层实现
 * 
 * @author numberone
 * @date 2020-09-25
 */
@Service
public class BottomUrlFatherServiceImpl implements IBottomUrlFatherService 
{
	@Autowired
	private BottomUrlFatherMapper bottomUrlFatherMapper;

	/**
     * 查询底部导航栏 父级信息
     * 
     * @param id 底部导航栏 父级ID
     * @return 底部导航栏 父级信息
     */
    @Override
	public BottomUrlFather selectBottomUrlFatherById(Long id)
	{
	    return bottomUrlFatherMapper.selectBottomUrlFatherById(id);
	}
	
	/**
     * 查询底部导航栏 父级列表
     * 
     * @param bottomUrlFather 底部导航栏 父级信息
     * @return 底部导航栏 父级集合
     */
	@Override
	public List<BottomUrlFather> selectBottomUrlFatherList(BottomUrlFather bottomUrlFather)
	{
	    return bottomUrlFatherMapper.selectBottomUrlFatherList(bottomUrlFather);
	}
	
    /**
     * 新增底部导航栏 父级
     * 
     * @param bottomUrlFather 底部导航栏 父级信息
     * @return 结果
     */
	@Override
	public int insertBottomUrlFather(BottomUrlFather bottomUrlFather)
	{
	    return bottomUrlFatherMapper.insertBottomUrlFather(bottomUrlFather);
	}
	
	/**
     * 修改底部导航栏 父级
     * 
     * @param bottomUrlFather 底部导航栏 父级信息
     * @return 结果
     */
	@Override
	public int updateBottomUrlFather(BottomUrlFather bottomUrlFather)
	{
	    return bottomUrlFatherMapper.updateBottomUrlFather(bottomUrlFather);
	}

	/**
     * 删除底部导航栏 父级对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteBottomUrlFatherByIds(String ids)
	{
		return bottomUrlFatherMapper.deleteBottomUrlFatherByIds(Convert.toStrArray(ids));
	}

	@Override
	public List<BottomUrlFather> query() {

		return bottomUrlFatherMapper.selectByList();
	}

}
